package com.ibeeking.found.common.response;

/**
 * @Author ibeeking
 */

public enum ResponseCodeEnum {
    SUCCESS(100000, "操作成功"),
    FAIL(100001, "操作失败"),
    PARAM_CHECK_FAIL(100002, "参数校验不通过"),
    SYSTEM_ERROR(100003, "系统发生异常"),
    UNKNOWN_ERROR(100004, "未知错误"),
    BUSINESS_ERROR(100005, "业务发生异常"),
    DATA_NOT_EXIST_ERROR(100006, "数据不存在"),
    TENANT_ID_NOT_EXIST(100007, "租户ID不存在"),
    DB_CHANGE_ERROR(100008, "数据源切换异常"),
    TOKEN_EXPIRE_ERROR(100009, "登录失效，请重新登录"),
    TOKEN_AUTHORIZATION_ERROR(100010, "未授权，请联系管理员进行授权"),
    ;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
